﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Templates/DefaultMaster.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Templates_ccWasteAudit1_Default" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Panel ID="pnlWasteCalc" DefaultButton="btnEnter" CssClass="form" runat="server">
        <h1><asp:Image ID="Image2" ImageUrl="~/dbimages/h1-ccWa.gif" AlternateText="Waste Audit" runat="server" /></h1>
        
        <asp:Panel ID="pnlMenuDisabled" runat="server">
            <div class="ccNav1">
                <ul>
                    <li><asp:Image ImageUrl="~/dbimages/ccNav_pnActive.gif" AlternateText="Pupil Numbers" runat="server" /></li>
                    <li><asp:Image ID="Image1" ImageUrl="~/dbimages/ccNav_pnActive.gif" AlternateText="Energy Audit" runat="server" /></li>
                    <li><asp:Image ID="Image3" ImageUrl="~/dbimages/ccNav_pnActive.gif" AlternateText="Waste Audit" runat="server" /></li>
                </ul>
            </div>
        </asp:Panel>
    
        <asp:Panel ID="pnlMenuEnabled" Visible="false" runat="server">
            <div class="ccNav1">
                <ul>
                   <li>
                        <asp:HyperLink ID="lnkPupilNumbers" NavigateUrl="PupilNumbers.aspx" ImageUrl="~/dbimages/ccNav_pnOn.gif" ToolTip="Pupil Numbers" runat="server" />
                    </li>
                    <li>
                        <asp:HyperLink ID="lnkEnergyAudit" NavigateUrl="EnergyAudit.aspx" ImageUrl="~/dbimages/ccNav_eaOn.gif" ToolTip="Energy Audit" runat="server" />
                    </li>
                    <li>
                        <asp:Image ID="Image7" ImageUrl="~/dbimages/ccNav_waActive.gif" AlternateText="Waste Audit" runat="server" />
                    </li>
                </ul>
            </div>
        </asp:Panel>
          
          <div class="ccNav2">
                <ul>
                    <li class="ccNav2Active">
                        <asp:HyperLink ID="lnkAudit1" Text="Audit One" runat="server" />
                    </li>
                    <li id="liAudit2Off" class="ccNav2Off" runat="server">Audit Two</li>
                    <li id="liAudit2Active" class="ccNav2Active" runat="server">
                        <asp:HyperLink ID="lnkAudit2" Text="Audit Two" runat="server" />
                    </li>
                    <li id="liAnalysisOff" class="ccNav2Off" runat="server">Analysis</li>
                    <li id="liAnalysisActive" class="ccNav2Active" runat="server">
                        <asp:HyperLink ID="lnkAnalysis" Text="Analysis" runat="server" />
                    </li>
                </ul>
            </div>
            
            <h2><%# string.Format("{0} - {1}", AcmsContext.CurrentPost != null ? AcmsContext.CurrentPost.DisplayName : "Waste Audit", AuditNo) %></h2>
        <asp:ValidationSummary ID="valSummary" runat="server" DisplayMode="BulletList" HeaderText="Please correct the following errors and try again."
            ShowSummary="True" ShowMessageBox="False" />
        
        <asp:Panel ID="pnlErrors" CssClass="errorBox" Visible="false" EnableViewState="false"
            runat="server">
            <ul id="ulErrors" runat="server">
            </ul>
        </asp:Panel>
        
        <asp:Panel ID="pnlWasteEntry" CssClass="calcContainer" Visible="false" runat="server">
            <div id="landFill">
                <h2>Land Fill</h2>
                <ul class="form">
                    <li class="formItem">
                        <span class="formLabel">
                            <asp:Label ID="Label13" Text="Paper kg:" AssociatedControlID="txt_L_Paper" runat="server" />
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="valRV_L_P_aper" ErrorMessage="Landfill Paper kg is required"
                                ControlToValidate="txt_L_Paper" Display="Dynamic" runat="server" />
                            <asp:CompareValidator ID="valCV_L_Paper" ControlToValidate="txt_L_Paper" Operator="GreaterThanEqual"
                                ValueToCompare="0" Type="Double" Display="Dynamic" runat="server" ErrorMessage="Please enter a number equal or greater than 0" />
                        </span>
                        <span class="forminput">
                            <asp:TextBox ID="txt_L_Paper" runat="server" Text="0" />
                        </span>
                    </li>
                    <li class="formItem"><span class="formLabel">
                        <asp:Label ID="Label1" Text="Card kg:" AssociatedControlID="txt_L_Card" runat="server" />
                        <span style="color: Red">*</span> </span><span class="forminput">
                            <asp:TextBox ID="txt_L_Card" runat="server" Text="0" />
                            <asp:RequiredFieldValidator ID="valLCard" ErrorMessage="Landfill Card KG is required"
                                ControlToValidate="txt_L_Card" Display="Dynamic" runat="server" />
                            <asp:CompareValidator ID="CompareValidator1" Display="Dynamic" ControlToValidate="txt_L_Card" Operator="GreaterThanEqual"
                                ValueToCompare="0" Type="Double" runat="server" ErrorMessage="Please enter a number equal or greater than 0"></asp:CompareValidator>
                        </span>
                    </li>
                    
                    <li class="formItem"><span class="formLabel">
                        <asp:Label ID="Label2" Text="Kitchen / Food Waste kg:" AssociatedControlID="txt_L_KFW"
                            runat="server" />
                        <span style="color: Red">*</span> </span><span class="forminput">
                            <asp:TextBox ID="txt_L_KFW" runat="server" Text="0"/>
                            <asp:RequiredFieldValidator ID="val_L_KFWCard" ErrorMessage="Landfill Kitchen / Food Waste is required"
                                ControlToValidate="txt_L_KFW" Display="Dynamic" runat="server" />
                            <asp:CompareValidator ID="CompareValidator2" Display="Dynamic" ControlToValidate="txt_L_KFW" Operator="GreaterThanEqual"
                                ValueToCompare="0" Type="Double" runat="server" ErrorMessage="Please enter a number equal or greater than 0"></asp:CompareValidator>
                        </span>
                    </li>
                    
                    <li class="formItem"><span class="formLabel">
                        <asp:Label ID="Label3" Text="Plastic Bottles & Cups kg:" AssociatedControlID="txt_L_PBC"
                            runat="server" />
                        <span style="color: Red">*</span> </span><span class="forminput">
                            <asp:TextBox ID="txt_L_PBC" runat="server" Text="0" />
                            <asp:RequiredFieldValidator ID="val_L_PBC" ErrorMessage="Landfill Plastic Bottles & Cups is required"
                                ControlToValidate="txt_L_PBC" Display="Dynamic" runat="server" />
                            <asp:CompareValidator ID="CompareValidator3" Display="Dynamic" ControlToValidate="txt_L_PBC" Operator="GreaterThanEqual"
                                ValueToCompare="0" Type="Double" runat="server" ErrorMessage="Please enter a number equal or greater than 0"></asp:CompareValidator>
                        </span>
                    </li>
                    
                    <li class="formItem"><span class="formLabel">
                        <asp:Label ID="Label4" Text="Plastic Packaging kg:" AssociatedControlID="txt_L_PP"
                            runat="server" />
                        <span style="color: Red">*</span> </span><span class="forminput">
                            <asp:TextBox ID="txt_L_PP" runat="server" Text="0" />
                            <asp:RequiredFieldValidator ID="val_L_PP" ErrorMessage="Landfill Plastic Packaging is required"
                                ControlToValidate="txt_L_PP" Display="Dynamic" runat="server" />
                            <asp:CompareValidator ID="CompareValidator4" Display="Dynamic" ControlToValidate="txt_L_PP" Operator="GreaterThanEqual"
                                ValueToCompare="0" Type="Double" runat="server" ErrorMessage="Please enter a number equal or greater than 0"></asp:CompareValidator>
                        </span>
                    </li>
                    
                    <li class="formItem"><span class="formLabel">
                        <asp:Label ID="Label5" Text="Glass kg:" AssociatedControlID="txt_L_Glass" runat="server" />
                        <span style="color: Red">*</span> </span><span class="forminput">
                            <asp:TextBox ID="txt_L_Glass" runat="server" Text="0"/>
                            <asp:RequiredFieldValidator ID="val_L_Glass" ErrorMessage="Landfill Glass is required"
                                ControlToValidate="txt_L_Glass" Display="Dynamic" runat="server" />
                            <asp:CompareValidator ID="CompareValidator5" Display="Dynamic" ControlToValidate="txt_L_Glass" Operator="GreaterThanEqual"
                                ValueToCompare="0" Type="Double" runat="server" ErrorMessage="Please enter a number equal or greater than 0"></asp:CompareValidator>
                        </span>
                        </li>
                    <li class="formItem"><span class="formLabel">
                        <asp:Label ID="Label6" Text="Cans kg:" AssociatedControlID="txt_L_Cans" runat="server" />
                        <span style="color: Red">*</span> </span><span class="forminput">
                            <asp:TextBox ID="txt_L_Cans" runat="server" Text="0"/>
                            <asp:RequiredFieldValidator ID="val_L_Cans" ErrorMessage="Landfill Cans kg is required"
                                ControlToValidate="txt_L_Cans" Display="Dynamic" runat="server" />
                            <asp:CompareValidator ID="CompareValidator6" Display="Dynamic" ControlToValidate="txt_L_Cans" Operator="GreaterThanEqual"
                                ValueToCompare="0" Type="Double" runat="server" ErrorMessage="Please enter a number equal or greater than 0"></asp:CompareValidator>
                        </span>
                        </li>
                <li class="formItem"><span class="formLabel">
                    <asp:Label ID="Label7" Text="Other kg:" AssociatedControlID="txt_L_Other" runat="server" />
                    <span style="color: Red">*</span> </span><span class="forminput">
                        <asp:TextBox ID="txt_L_Other" runat="server" Text="0"/>
                        <asp:RequiredFieldValidator ID="val_L_Other" ErrorMessage="Landfill Other is required"
                            ControlToValidate="txt_L_Other" Display="Dynamic" runat="server" />
                        <asp:CompareValidator ID="CompareValidator7" Display="Dynamic" ControlToValidate="txt_L_Other" Operator="GreaterThanEqual"
                            ValueToCompare="0" Type="Double" runat="server" ErrorMessage="Please enter a number equal or greater than 0"></asp:CompareValidator>
                    </span></li>
            </ul>
           </div>
           
           <div id="recycling">
            <h2>Recycling</h2>
            <ul class="form">
                <li class="formItem"><span class="formLabel">
                    <asp:Label ID="Label8" Text="Paper kg:" AssociatedControlID="txt_R_Paper" runat="server" />
                    <span style="color: Red">*</span> </span><span class="forminput">
                        <asp:TextBox ID="txt_R_Paper" runat="server" Text="0"/>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ErrorMessage="Recycling Paper KG is required"
                            ControlToValidate="txt_R_Paper" Display="Dynamic" runat="server" />
                        <asp:CompareValidator ID="CompareValidator8" Display="Dynamic" ControlToValidate="txt_R_Paper" Operator="GreaterThanEqual"
                            ValueToCompare="0" Type="Double" runat="server" ErrorMessage="Please enter a number equal or greater than 0"></asp:CompareValidator>
                    </span>
                </li>
                <li class="formItem"><span class="formLabel">
                    <asp:Label ID="Label9" Text="Card kg:" AssociatedControlID="txt_R_Card" runat="server" />
                    <span style="color: Red">*</span> </span><span class="forminput">
                        <asp:TextBox ID="txt_R_Card" runat="server" Text="0"/>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ErrorMessage="Recycling Card KG is required"
                            ControlToValidate="txt_R_Card" Display="Dynamic" runat="server" />
                        <asp:CompareValidator ID="CompareValidator9" Display="Dynamic" ControlToValidate="txt_R_Card" Operator="GreaterThanEqual"
                            ValueToCompare="0" Type="Double" runat="server" ErrorMessage="Please enter a number equal or greater than 0"></asp:CompareValidator>
                    </span>
                </li>
                <li class="formItem"><span class="formLabel">
                    <asp:Label ID="Label10" Text="Kitchen / Food Waste kg:" AssociatedControlID="txt_R_KFW"
                        runat="server" />
                    <span style="color: Red">*</span> </span><span class="forminput">
                        <asp:TextBox ID="txt_R_KFW" runat="server" Text="0"/>
                        <asp:RequiredFieldValidator ID="val_R_KFWCard" ErrorMessage="Recycling Kitchen / Food Waste is required"
                            ControlToValidate="txt_R_KFW" Display="Dynamic" runat="server" />
                        <asp:CompareValidator ID="CompareValidator10" Display="Dynamic" ControlToValidate="txt_R_KFW" Operator="GreaterThanEqual"
                            ValueToCompare="0" Type="Double" runat="server" ErrorMessage="Please enter a number equal or greater than 0"></asp:CompareValidator>
                    </span></li>
                <li class="formItem"><span class="formLabel">
                    <asp:Label ID="Label11" Text="Plastic Bottles & Cups kg:" AssociatedControlID="txt_R_PBC"
                        runat="server" />
                    <span style="color: Red">*</span> </span><span class="forminput">
                        <asp:TextBox ID="txt_R_PBC" runat="server" Text="0"/>
                        <asp:RequiredFieldValidator ID="val_R_PBC" ErrorMessage="Recycling Plastic Bottles & Cups is required"
                            ControlToValidate="txt_R_PBC" Display="Dynamic" runat="server" />
                        <asp:CompareValidator ID="CompareValidator11" Display="Dynamic" ControlToValidate="txt_R_PBC" ValueToCompare="0"
                            Operator="GreaterThanEqual" Type="Double" runat="server" ErrorMessage="Please enter a number equal or greater than 0"></asp:CompareValidator>
                    </span>
                </li>
                <li class="formItem"><span class="formLabel">
                    <asp:Label ID="Label12" Text="Plastic Packaging kg:" AssociatedControlID="txt_R_PP"
                        runat="server" />
                    <span style="color: Red">*</span> </span><span class="forminput">
                        <asp:TextBox ID="txt_R_PP" runat="server" Text="0"/>
                        <asp:RequiredFieldValidator ID="val_R_PP" ErrorMessage="Recycling Plastic Packaging is required"
                            ControlToValidate="txt_R_PP" Display="Dynamic" runat="server" />
                        <asp:CompareValidator ID="CompareValidator12" Display="Dynamic" ControlToValidate="txt_R_PP" ValueToCompare="0"
                            Operator="GreaterThanEqual" Type="Double" runat="server" ErrorMessage="Please enter a number equal or greater than 0"></asp:CompareValidator>
                    </span></li>
                <li class="formItem"><span class="formLabel">
                    <asp:Label ID="Label14" Text="Glass kg:" AssociatedControlID="txt_R_Glass" runat="server" />
                    <span style="color: Red">*</span> </span><span class="forminput">
                        <asp:TextBox ID="txt_R_Glass" runat="server" Text="0"/>
                        <asp:RequiredFieldValidator ID="val_R_Glass" ErrorMessage="Recycling Glass is required"
                            ControlToValidate="txt_R_Glass" Display="Dynamic" runat="server" />
                        <asp:CompareValidator ID="CompareValidator13" Display="Dynamic" ControlToValidate="txt_R_Glass" ValueToCompare="0"
                            Operator="GreaterThanEqual" Type="Double" runat="server" ErrorMessage="Please enter a number equal or greater than 0"></asp:CompareValidator>
                    </span>
                </li>
                <li class="formItem"><span class="formLabel">
                    <asp:Label ID="Label15" Text="Cans kg:" AssociatedControlID="txt_R_Cans" runat="server" />
                    <span style="color: Red">*</span> </span><span class="forminput">
                        <asp:TextBox ID="txt_R_Cans" runat="server" Text="0"/>
                        <asp:RequiredFieldValidator ID="val_R_Cans" ErrorMessage="Recycling Cans kg is required"
                            ControlToValidate="txt_R_Cans" Display="Dynamic" runat="server" />
                        <asp:CompareValidator ID="CompareValidator14" Display="Dynamic" ControlToValidate="txt_R_Cans" ValueToCompare="0"
                            Operator="GreaterThanEqual" Type="Double" runat="server" ErrorMessage="Please enter a number equal or greater than 0"></asp:CompareValidator>
                    </span>
                </li>
                <li class="formItem"><span class="formLabel">
                    <asp:Label ID="Label16" Text="Other kg:" AssociatedControlID="txt_R_Other" runat="server" />
                    <span style="color: Red">*</span> </span><span class="forminput">
                        <asp:TextBox ID="txt_R_Other" runat="server" Text="0"/>
                        <asp:RequiredFieldValidator ID="val_R_Other" ErrorMessage="Recycling Other is required"
                            ControlToValidate="txt_R_Other" Display="Dynamic" runat="server" />
                        <asp:CompareValidator ID="CompareValidator15" Display="Dynamic" ControlToValidate="txt_R_Other" ValueToCompare="0"
                            Operator="GreaterThanEqual" Type="Double" runat="server" ErrorMessage="Please enter a number equal or greater than 0"></asp:CompareValidator>
                    </span>
                </li>
            </ul>
            </div>
            <ul>
                <li class="formItem buttons"><span class="forminput">
                    <asp:Button ID="btnEnter" Text="Calculate your CO2" runat="server" OnClick="btnEnter_Click" />
                </span></li>
            </ul>
           </asp:Panel>

            <asp:Panel ID="pnlWaste1Results" Visible="false" runat="server">
                <asp:Image ImageUrl="~/dbimages/ccBalloon.jpg" CssClass="imageCenter" AlternateText="Balloons" runat="server" />
                <h2>Your School Generated:</h2>
                
                <h3>Landfill</h3>
                <div>
                    <p><asp:Label ID="lbl_L_KGCO2D" runat="server"/>kg CO<sub>2</sub> from landfill waste per day.
                        This is equivalent to <span class="ic_ballon"><asp:Label ID="lbl_L_IcKGCO2D" runat="server"/> party balloons.</span></p>
                </div>
                
                <div>
                    <p><asp:Label ID="lbl_L_TonCO2Yr" runat="server"></asp:Label> Tons CO<sub>2</sub> from landfill waste per year.
                    This is enough gas to fill <asp:Label ID="lbl_L_IcTonCO2Yr" runat="server"></asp:Label> jet planes.</p>
                </div>
                
                <h3>Recycling</h3>
                <div>
                    <p> <asp:Label ID="lbl_R_KGCO2D" runat="server"></asp:Label> kg CO<sub>2</sub> from recylced waste per day.
                    This is enough gas to fill <asp:Label ID="lbl_R_IcKGCO2D" runat="server"></asp:Label> party balloons.</p>
                </div>
                
                <div>
                     <p><asp:Label ID="lbl_R_TonCO2Yr" runat="server"></asp:Label> Tons CO<sub>2</sub> from recycled waste per year.
                    This is enough gas to fill <asp:Label ID="lbl_R_IcTonCO2Yr" runat="server"></asp:Label> jet planes.</p>
                </div>
                <h3>Total Waste</h3>
               <div>
                     <p><asp:Label ID="lbl_T_KGCO2D" runat="server"></asp:Label> kg CO<sub>2</sub> from total waste per day.
                    This is enough gas to fill <asp:Label ID="lbl_T_IcKGCO2D" runat="server"></asp:Label> party balloons.</p>
                </div>
                
                <div>
                     <p><asp:Label ID="lbl_T_TonCO2Yr" runat="server"></asp:Label> Tons CO<sub>2</sub> In total waste per year.
                    This is enough gas to fill <asp:Label ID="lbl_T_IcTonCO2Yr" runat="server"></asp:Label> jet planes.</p>
                </div>
                <asp:Button Text="Edit your data" ID="btnEditData" runat="server" OnClick="btnEditData_Click"/>
               
                <asp:Image ID="Image4" ImageUrl="~/dbimages/ccJet.jpg" CssClass="imageCenter" AlternateText="Jet" runat="server" />
            </asp:Panel>
    </asp:Panel>
</asp:Content>